package com.ahs;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * ClassName: LogRestFeignServer<br>
 * Description: 快易赔熔断机制<br>
 * @author jiangL
 * @date: 2017年3月24日 下午3:19:27
 * @version V1.0
 * @since JDK 1.8
 */
@EnableCircuitBreaker
@EnableHystrixDashboard 
@EnableDiscoveryClient
@EnableHystrix
@EnableFeignClients
@SpringBootApplication
@EnableSwagger2
public class AhsMicroserviceServer {
	public static void main(String[] args) {
		new SpringApplicationBuilder(AhsMicroserviceServer.class).web(true).run(args);
	}
}
